from flask_restx import Api
from .views import ns as curr_ns


def init_app(app):
    api = Api(app, version="1.0", title="test api", description="test api created with flask_restx",
              prefix='/api')
    api.add_namespace(curr_ns)

